package com.itheima.pattern.decorator;


/**
 * 装饰者类（抽象装饰角色）
 */
public abstract class Garnish extends FastFood{//继承了抽象构建类又聚合了抽象构建类
    private FastFood fastFood;


    public Garnish(FastFood fastFood,float price,String desc){
        super(price,desc);
        this.fastFood=fastFood;
    }

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

}
